<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'detailadv.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
  <div id="detailmanager">
<a href="javascript:history.back(-1);"><img src="<%=basePath%>images/goBack.png"/></a>
</div>
<div style="width: 700px;margin-left: 50px;">
<center>
 <table style="border-collapse:separate; border-spacing:10px;">
		<tr>
			<td style="width:60px;">编号:</td>
			<td>${adv.id }</td>
		</tr>
		<tr>
			<td>标题:</td>
			<td>${adv.title }</td>
		</tr>
		<tr>
			<td>内容:</td>
			<td>${adv.content }</td>
		</tr>

		<tr>
			<td>类型:</td>
			<c:if test="${adv.type==1}">
				<td>评论报道</td>
			</c:if>
			<c:if test="${adv.type==2}">
				<td>典型事迹</td>
			</c:if>
			<c:if test="${adv.type==3}">
				<td>公告栏</td>
			</c:if>
			<c:if test="${adv.type==4}">
				<td>专题报道</td>
			</c:if>
		</tr>
		<tr>
			<td>时间:</td>
			<td>${adv.time }</td>
		</tr>
		<tr>
			<td>文件:</td>
			<c:if test="${adv.docname==null}">
				<td>相应文件还没有上传</td>
			</c:if>
			<c:if test="${adv.docname!=null}">
				<td>${adv.docname}</td>
			</c:if>
		</tr>
	</table>
	</center>
	</div>
</body>
</html>
